package com.it;

import com.it.config.UserConfig;
import com.it.utils.MyCalculator;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Title: 心动的offer->13k
 * @Author 帅宏编码-coding
 * @Date 2025/1/20 星期一 15:47
 */
public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(UserConfig.class);
        MyCalculator myCalculator = context.getBean(MyCalculator.class);
        int res = myCalculator.add(1, 2);
        System.out.println(res);
    }
}